package mapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import model.User;
public class UserMapper implements RowMapper<User>{
	   public User mapRow(ResultSet rs, int rowNum) throws SQLException {
		      User u = new User();
//		      u.setId(rs.getInt("id"));
//		      u.setUserId(rs.getString("userId"));
//		      u.setName(rs.getString("name"));
		      u.setAccount(rs.getString("account"));
		      u.setPassword(rs.getString("password"));
		      return u;
	   }

	   
	
}
